<!-- Content -->
<div id="content">

    <!-- Content wrapper -->
    <div class="wrapper">

        <!-- Breadcrumbs line -->
        <div class="crumbs">
            <ul id="breadcrumbs" class="breadcrumb"> 
                <li><a href="#">Panel</a></li>
                <li class="active"><a href="<?= base_url('noticias') ?>" title="">Noticias</a></li>
            </ul>
        </div>
        <!-- /breadcrumbs line -->

        <!-- Page header -->
        <div class="page-header">
            <div class="page-title">
                <h5>Agregar Noticia</h5>
                <span>CIEMPIESS-UNAM</span>
            </div>
        </div>
        <!-- /page header -->

        <?= @$upload_done; ?>
        <?= @$error; ?>
        <?= form_open_multipart('noticias/agregarNoticia') ?>
        <!-- Grid widgets -->
        <div class="row-fluid">
            <div class="span6">
                <div class="widget">
                    <div class="navbar"><div class="navbar-inner"><h6>Español</h6></div></div>
                    <div class="well body">

                        <div class="control-group">
                            <label class="control-label">Titulo: <span class="text-error">*</span></label>
                            <div class="controls">
                                <input type="text" class="validate[required] span12" maxlength="80" name="titulo_col"  value="<?= @$titulo_col; ?>" required />
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">Noticia:</label>
                            <div class="controls"><textarea rows="25" cols="5" maxlength="2000" name="nota_col" class="span12" id="req" required ><?= @$nota_col; ?></textarea></div>
                        </div>



                    </div>
                </div>
            </div>
            <div class="span6">
                <div class="widget">
                    <div class="navbar"><div class="navbar-inner"><h6>Ingles</h6></div></div>
                    <div class="well body">

                        <div class="control-group">
                            <label class="control-label">Titulo: <span class="text-error">*</span></label>
                            <div class="controls">
                                <input type="text" class="validate[required] span12" maxlength="80" name="tituloe_col"  value="<?= @$tituloe_col; ?>" id="req" required/>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">Noticia:</label>
                            <div class="controls"><textarea rows="25" cols="5" maxlength="2000" name="notae_col" class="span12" required><?= @$notae_col; ?></textarea></div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
        <!-- /grid widgets -->


        <div class="row-fluid">
            <div class="span6">
                <div class="widget">
                    <div class="navbar"><div class="navbar-inner"><h6>General</h6></div></div>
                    <div class="well body">
                        <div class="control-group">
                            <label class="control-label">Autor: <span class="text-error">*</span></label>
                            <div class="controls">
                                <input type="text" class="validate[required] span12" maxlength="50" name="autor_col" value="<?= @$autor_col; ?>" required/>
                            </div>
                        </div> 


                        <div class="control-group">
                            <label class="control-label" title="Palabras separadas por coma">Tags:</label>
                            <div class="controls"><input type="text" id="tags2" class="tags" required  maxlength="300" name="keywords_col" value="<?= @str_replace(' ', ',', $keywords_col) ?>"/></div>
                        </div>

                        <div class="control-group">
                            <label class="control-label">Subir Imagenes:</label>
                            <div class="controls">
                                <input type="file" class="styled" multiple name="file_col[]">
                            </div>
                        </div>
                        
                        <div class="form-actions align-right">
                            <input name="agregarNoticia" type="submit" class="btn btn-info" value="AGREGAR NOTICIA">
                        </div>

                    </div>
                </div>
            </div>
        </div>

        <?= form_close() ?>



    </div>
    <!-- /content wrapper -->

</div>
<!-- /content -->

